//
//  PersonTableViewCell.m
//  Delicious
//
//  Created by lanou on 16/5/10.
//  Copyright © 2016年 gy. All rights reserved.
//

#import "PersonTableViewCell.h"

@implementation PersonTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.personImage.layer.cornerRadius = 30;
    self.personImage.layer.masksToBounds = YES;
}

- (CGFloat)heightForText:(NSString *)string
{
    NSDictionary *dic = @{NSFontAttributeName : [UIFont systemFontOfSize:17]};
    CGRect rect = [string boundingRectWithSize:CGSizeMake(self.Description.frame.size.width, 100000) options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil];
    return rect.size.height;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
